package com.food.restaurantpro.connection;

import com.food.restaurantpro.objects.Reservation;
import com.food.restaurantpro.objects.UserInfo;

public interface IServerService {
	public enum Methods {
		getCurrentTime,
		getAllPromotions,
		getUpdatePromotion,
		getAllDishCategory,
		getAllDishs,
		login,
		updateUserInfo,
		getUpdateDishs,
		getPlaces,
		submitReservation,
		getListReservation,
		addPreOrder,
		closeReservation,
		updateReservation,
		addPreOrderDetail,
		getListOrderAndDetail,
		cancelPreOrder,
		editYourPreOrder,
		getAboutUs
	};
	public void getCurrentTime();
	public void getAllPromotions();
	public void getUpdatePromotion(String time, String promotionIDList);
	public void getAllDishCategory();
	public void getAllDishs();
	public void getUpdateDishs(String time, String dishIdList);
	public void login(String userCode);
	public void updateUserInfo(UserInfo userInfo);
	public void getPlaces();
	public void submitReservation(Reservation reservation);
	public void getListReservation(String userID);
	public void addPreOrder(String generateID, String currentDateOrder, String currentTimeOrder, String dateOrder, String timeOrder, String placeID);
	public void closeReservation(Reservation reservation);
	public void updateReservation(Reservation reservation);
	public void addPreOrderDetail(String url);
	public void getListOrderAndDetail(String generateID);
	public void cancelPreOrder(String orderID);
	public void editYourPreOrder(String order_id, String order_current_date, String order_current_time, String order_date, String order_time, String order_place);
	public void getAboutUs();
	
	
}
